import React from "react";
import ReactDOM from "react-dom/client";

import App from "./App.jsx";
import store from "./redux/store.js";

import {Provider} from "react-redux";

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <React.StrictMode>
        <Provider store={store}>
            <App />
        </Provider>
    </React.StrictMode>
);
// store.subscribe(()=>{
//     root.render(
//         <React.StrictMode>
//             <App />
//         </React.StrictMode>
//     );
// });